<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="control.ResourcesControl"%>
<%@ page import="util.ParamUtil"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>用户删除</title>
  </head>
  <body>
    <%
    		request.setCharacterEncoding("UTF-8");
    		int id=ParamUtil.getInt(request,"id",0);
    		ResourcesControl rc = new ResourcesControl();
    		if(rc.deleteResources(id))
    		{
     %>
    <script language="javascript">
     alert("删除成功");
     window.location.href="resources.jsp";
     </script>
		<%} else {%>
	<script language="javascript">
     alert("删除失败");
     window.location.href="resources.jsp";
     </script>
     <%}%>
  </body>
</html>
